package com.demo.service;

import com.demo.model.Order;

import java.util.List;

/**
 * @Author EricLin
 * @Date 2017/11/28
 */
public interface OrderService {

    int save(Order order);

    Order getOrderById(Integer id);

    List<Order> getOrderByUserId(Integer id);

    Integer updateOrder(Order order);

    Integer deleteOrder(int id);

    List<Order> getOrders(Integer userId);
}
